package com.smasher.serialport;

import androidx.annotation.StringDef;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

@StringDef({Parity.NONE, Parity.ODD, Parity.EVEN, Parity.MARK, Parity.SPACE})
@Retention(RetentionPolicy.SOURCE)
public @interface Parity {

    public static final String NONE = "NONE";
    public static final String ODD = "ODD";
    public static final String EVEN = "EVEN";
    public static final String MARK = "MARK";
    public static final String SPACE = "SPACE";
}
